package com.ks.phone.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.ks.phone.R;
import com.ks.phone.responseBean.CustomerList;

import org.jetbrains.annotations.NotNull;

public class CustomerAdapter extends BaseQuickAdapter<CustomerList.ListDTO.DataDTO, BaseViewHolder> {
    public CustomerAdapter(int layoutId) {
        super(layoutId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CustomerList.ListDTO.DataDTO customer) {
        baseViewHolder.setText(R.id.date, customer.getAddtime());
        baseViewHolder.setText(R.id.phone, customer.getPhone());
        baseViewHolder.setText(R.id.time, customer.getSecond() + "秒");
    }
}
